package org.cunamas.core.dto.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.cunamas.core.dto.CoberturaAtencionDto;
import org.springframework.jdbc.core.RowMapper;

public class CoberturaAtencionMapper implements RowMapper<CoberturaAtencionDto>{

	public CoberturaAtencionDto mapRow(ResultSet rs, int rowNum) throws SQLException {
		CoberturaAtencionDto dto = new CoberturaAtencionDto();
		 dto.setDep(rs.getString(1));
		 dto.setTotalProvincias(rs.getString(2));
		 dto.setTotalDistritos(rs.getString(3));
		 dto.setTotalComitesGestion(rs.getString(4));
		 dto.setLocalesComunales(rs.getString(5));
		 dto.setLocalesFamiliares(rs.getString(6));
		 dto.setLocalesCentroCunamas(rs.getString(7));
		 dto.setTotalModulos(rs.getString(8));
		 dto.setTotalMc(rs.getString(9));
		 dto.setBenefLocales(rs.getString(10));
		 dto.setBenefCunamas(rs.getString(11));
		 dto.setBenefTotal(rs.getString(12));
		 dto.setBenefRaciones(rs.getString(13));
		return dto;
	}

}
